package com.yfree.utils;

import android.content.Intent;
import android.net.Uri;

import com.yfree.activities.YActivity;

/**
 * Created by ymac on 2018/1/5.
 */

public class YQQUtils {
    public static void openQQ(YActivity context, String qq) {
        try {
            context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" + qq)));
        } catch (Exception e) {
            context.yToast("调起QQ客户端失败，请检查是否正确安装");
        }
    }
}
